package com.seezoon.infrastructure.constants;

import java.time.ZoneId;
import java.time.format.DateTimeFormatter;


public class Constants {

    public static final String DATETIME_PATTERN = "yyyy-MM-dd HH:mm:ss";
    public static final String DATE_PATTERN = "yyyy-MM-dd";
    public static final String DB_TABLE_PATTERN = "MM";
    public static final String DATE_PATTERN_JT808 = "yyMMddHHmmss";
    public static final DateTimeFormatter DATE_TIME_FORMATTER = DateTimeFormatter.ofPattern(Constants.DATETIME_PATTERN);
    public static final DateTimeFormatter DATE_TIME_JT808_FORMATTER = DateTimeFormatter.ofPattern(
            Constants.DATE_PATTERN_JT808).withZone(ZoneId.of("Asia/Shanghai"));
    public static final DateTimeFormatter DB_TABLE_PATTERN_FORMATTER = DateTimeFormatter.ofPattern(
            Constants.DB_TABLE_PATTERN);

    public static final String HISTORY_DB_SCHEME = "history";
    public static final String BATCH_SUBMIT_INTERVAL = "${app.device.batch-submit-interval:5000}";

}
